//without sync will cause fail


import java.io.*;
public class Main{
	public static void main(String[] args){
		final Personalinfo person=new Personalinfo();

		 
	
		Thread thread1=new Thread(
			new Runnable(){
				public void run(){
					while(true)
						person.setNameAndID("Justin Keng","J.K");
				}
			}
		);


		Thread thread2=new Thread(
			new Runnable(){
				public void run(){
					while(true)
						person.setNameAndID("Funck You","F.Y");
				}
			}
		);

		System.out.println("start test");


		thread1.start();
		thread2.start();

	}

}